package com.cly.statistics;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 总数统计页面数据
 *
 * @author by 春风能解释
 * <p>
 * 2024/10/15
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "总数统计页面数据")
public class SumStatistics<T> implements Serializable {

    /**
     * 序列化版本号
     */
    @Serial
    private static final long serialVersionUID = 547810741362492033L;
    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;
    /**
     * 总数
     */
    @Schema(description = "总数")
    private T total;
    /**
     * 增量
     */
    @Schema(description = "增量")
    private Float incremental;

    /**
     * 颜色
     */
    @Schema(description = "颜色")
    private String color;
}
